package com.group.model;

import java.util.Date;

/**
 * 账户日志
 * 
 * @author zhaolei
 *
 */
public class UserTickerLog {

	private Long id;

	private Long userId;

	/**
	 * 用户名
	 */
	private String userName;

	/**
	 * 头像
	 */
	private String headimage;

	public String getHeadimage() {
		return headimage;
	}

	public void setHeadimage(String headimage) {
		this.headimage = headimage;
	}

	private String userTel;
	
	private String userHeadimage;

	private Long otherUserId;

	/**
	 * 钱包地址
	 */
	private String address;

	private String cid;

	/**
	 * 账单号
	 */
	private String billNo;

	/**
	 * 原因
	 */
	private String reason;

	/**
	 * 数量
	 */
	private Double num;

	/**
	 * 手续费
	 */
	private Double fee;
	
	/**
	 * 消耗的书币
	 */
	private Double cost;

	/**
	 * 状态,进行中,已完成
	 */
	private String state;

	private Date createTime;

	/**
	 * 账户余额
	 */
	private Double balance;

	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Double getNum() {
		return num;
	}

	public void setNum(Double num) {
		this.num = num;
	}

	/**
	 * 查询数量绝对值
	 * 
	 * @return
	 */
	public Double getAbsNum() {
		if (num == null)
			return null;
		if (num >= 0)
			return num;
		else
			return -num;

	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getOtherUserId() {
		return otherUserId;
	}

	public void setOtherUserId(Long otherUserId) {
		this.otherUserId = otherUserId;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Double getFee() {
		return fee;
	}

	public void setFee(Double fee) {
		this.fee = fee;
	}

	public String getBillNo() {
		return billNo;
	}

	public void setBillNo(String billNo) {
		this.billNo = billNo;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserTel() {
		return userTel;
	}

	public void setUserTel(String userTel) {
		this.userTel = userTel;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Double getCost() {
		return cost;
	}

	public void setCost(Double cost) {
		this.cost = cost;
	}

	public String getUserHeadimage() {
		return userHeadimage;
	}

	public void setUserHeadimage(String userHeadimage) {
		this.userHeadimage = userHeadimage;
	}

}
